#include <stdio.h>
#include <stdlib.h>
#include <string.h>


#define EOS '\0'

long int BF(char *x, int m, char *y, int n)
{
    char *yb;
    long int count = 0;
    for (yb = y; *y != EOS; ++y)
        if (memcmp(x, y, m) == 0)
            count++;
    return count;
}
